package spring.beanTest.interfaceTest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ServiceImpl2 implements ServiceInterface{
    public int a = 2;

//    @Autowired
//    @Resource(name="daoImpl2")
    DaoInterface daoInterface;
    @Override
    public void test() {
        System.out.println("ServiceImpl2");
        daoInterface.test();
    }
}
